package com.jiazhong.ssm.test01整合.service.impl;

import com.jiazhong.ssm.test01整合.mapper.UserMapper;
import com.jiazhong.ssm.test01整合.pojo.User;
import com.jiazhong.ssm.test01整合.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther:shuXin
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAllUser() {
        List<User> allUser = userMapper.getAllUser();
        return allUser;
    }
}
